#赛事平台 Dockerfile
FROM registry.cn-chengdu.aliyuncs.com/xhacr/hyperf:php8.2.20.sw.3
LABEL maintainer="Jhou Shuai <jhou.shuai@qq.com>" version="1.0" license="MIT" app.name="DyhSwoole"


ARG TZ
ARG APP_ENV

ENV APP_ENV=${APP_ENV:-"prod"}


# 时区
RUN cp /usr/share/zoneinfo/${TZ} /etc/localtime && \
  echo "${TZ}" > /etc/timezone


WORKDIR /var/www

# 端口
#EXPOSE 8501-8504
EXPOSE 6501

#ENTRYPOINT ["php", "/var/www/bin/hyperf.php", "start"]
